﻿using System.Runtime.Serialization;

namespace Core.Model.Column
{
    [DataContract]
    public class ExaminationColumn
    {
        public ExaminationColumn(string name, ColumnType type)
        {
            Type = type;
            Name = name;
        }

        #region Public fields

        [DataMember]
        public string Name { get; set; }

        [DataMember]
        public ColumnType Type { get; private set; }

        #endregion

        #region Public methods

        public override string ToString()
        {
            return Name;
        }

        #endregion
    }
}